import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:myapp/main_router.dart';

import 'http/sample/app_net_init.dart';


void main() {
  runApp(MyApp());
  Get.put(TokenController());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    AppNetInit.init("http://am.hongyuan2023.cn/ams/openapi/");

    return GetMaterialApp(
      builder: EasyLoading.init(),
      initialRoute: '/',
      getPages: MainRouter.getPages(),
    );
  }
}

